<!DOCTYPE html>
<html>
<head lang="en">

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/static/favicon.ico">
    <meta charset="UTF-8">
    <title>{{ setting.title }}</title>

    <!-- Bootstrap core CSS -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap theme -->
    <link href="/static/css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="/static/css/blog.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="/static/css/style.css" rel="stylesheet">
    {% block css %}{% endblock %}

    {% block js %}{% endblock %}
</head>
<body role="document">
{% block nav %}
    <div class="blog-masthead">
      <div class="container global-nav">
        <nav class="blog-nav">
          <h1 class="logo"><a class="sf" href="/">SegmentFault</a></h1>
          <a class="blog-nav-item {{home_active}}" href="/">首页</a>
          <a class="blog-nav-item {{groups_active}}" href="/groups">小组</a>
          <a class="blog-nav-item {{ask_active}}" href="/ask">问答</a>
          <a class="blog-nav-item {{article_active}}" href="/article">文章</a>
          <a class="blog-nav-item {{about_active}}" href="/about">关于</a>
          <ul class="nav navbar-nav navbar-right" id="nav-right">
            <li><a href="#" style="color:#fff;">登录</a></li>
          </ul>
          {% if not is_home %}
          <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="关键字...">
          </form>
          {% endif %}
        </nav>
      </div>
    </div>
{% endblock %}
<div class="container">
{% block header %}{% endblock %}
{% block main %}{% endblock %}
{% block footer %}
    <!-- Site footer -->
    <footer class="footer">
    <hr>
    <p>five3@163.com © testdoc 2015</p>
    </footer>
</div> <!-- /container -->
{% endblock %}
{% block bottom %}
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="/static/js/ie-emulation-modes-warning.js"></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
{% endblock %}
{% block bottom_ext %}{% endblock %}
</body>
</html>